import VueRouter from 'vue-router'

import home from './components/tabbar/Home.vue'
import member from './components/tabbar/Member.vue'
import shopCar from './components/tabbar/ShopCar.vue'
import search from './components/tabbar/Search.vue'
import newList from './components/tabbar/home/new/newList.vue'
import newInfo from './components/tabbar/home/new/newInfo.vue'
import photoList from './components/tabbar/home/photo/photoList.vue'
import photoInfo from './components/tabbar/home/photo/photoInfo.vue'

var router = new VueRouter({
    routes : [
        {path : '/', redirect : '/home'},
        {path : '/home', component : home},
        {path : '/member', component : member},
        {path : '/shopCar', component : shopCar},
        {path : '/search', component : search},
        {path : '/home/newList', component : newList},
        {path : '/home/newInfo/:id', component : newInfo},
        {path : '/home/photoList/', component : photoList},
        {path : '/home/photoInfo/:id', component : photoInfo}
    ],
    linkActiveClass : 'mui-active'
})

export default router